package com.yangzehan.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 小程序主题表
 * @TableName xcx_theme
 */
@TableName(value ="xcx_theme")
public class XcxTheme implements Serializable {
    /**
     * 卡片主题id
     */
    @TableId(type = IdType.AUTO)
    private Integer themeId;

    /**
     * 卡片主题内容
     */
    private String value;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 卡片主题id
     */
    public Integer getThemeId() {
        return themeId;
    }

    /**
     * 卡片主题id
     */
    public void setThemeId(Integer themeId) {
        this.themeId = themeId;
    }

    /**
     * 卡片主题内容
     */
    public String getValue() {
        return value;
    }

    /**
     * 卡片主题内容
     */
    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        XcxTheme other = (XcxTheme) that;
        return (this.getThemeId() == null ? other.getThemeId() == null : this.getThemeId().equals(other.getThemeId()))
            && (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getThemeId() == null) ? 0 : getThemeId().hashCode());
        result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", themeId=").append(themeId);
        sb.append(", value=").append(value);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}